Quicker way to solve integration by parts